<extend name="Public/Dialog/Common"/>
<block name="pageContent">
<div class="bjui-pageContent">
    <form action="__ACTION__" class="pageForm" data-toggle="validate" method="post">
        <!-- 菜单id号 -->
        <input type="hidden" name="id" value="{:I('get.id')}">
        <table class="table table-condensed table-hover">
            <tbody>
                <tr>
                    <td colspan="2" align="center">
                        <h3>
                            {$infoArr.title|default="添加菜单"}
                        </h3>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="control-label x90">所属父级：</label>
                        <select name="pid" id="j_dialog_parent" data-toggle="selectpicker">
                            <?php if($menuList)foreach($menuList as $arr):?>
                            <option value="{$arr.id}" <?php echo $arr['id']==I('get.pid')?'selected':'';?>>{$arr.title}</option>
                            <?php endforeach;?>
                        </select>
                    </td>
                    <td>
                        <label class="control-label x90">菜单名称：</label>
                        <input type="text" name="title" id="j_dialog_title" value="{$infoArr.title}" data-rule="required" size="20">
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <label class="control-label x90">链接：</label>
                        <input type="text" name="url" id="j_dialog_url" value="{$infoArr.url}" data-rule="required" size="50">
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="control-label x90">排序：</label>
                        <input type="text" data-step="1" data-max="100" data-min="0" data-toggle="spinner" size="5"
                               value="{$infoArr.sort}" id="j_custom_sort" name="sort" class="form-control"
                               style="padding-right: 13px; width: 50px;">
                        <!--<input type="text" name="sort" id="j_dialog_sort" value="{$infoArr.sort}" size="20">-->
                    </td>
<!--                    <td>
                        <label class="control-label x90">图标：</label>
                        <select name="icon" data-toggle="selectpicker">
                            <option value="">选择图标</option>
                            <include file="menuIcon" />
                        </select>
                    </td>-->
                    <td>
                        <label class="control-label x85">自动更新：</label>
                        <input type="radio" name="ajaxload" data-toggle="icheck" value="1" data-rule="checked" data-label="是&nbsp;&nbsp;" <?php echo $infoArr['ajaxload']==1?'checked':'';?>>
                        <input type="radio" name="ajaxload" data-toggle="icheck" value="0" data-label="否" <?php echo $infoArr['ajaxload']==0?'checked':'';?>>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="control-label x85">隐藏：</label>
                        <input type="radio" name="hide" id="j_custom_hide1" data-toggle="icheck" value="1" data-rule="checked" data-label="是&nbsp;&nbsp;" <?php echo $infoArr['hide']==1?'checked':'';?>>
                        <input type="radio" name="hide" id="j_custom_hide2" data-toggle="icheck" value="0" data-label="否" <?php echo $infoArr['hide']==0?'checked':'';?>>
                    </td>
                    <td>
                        <label class="control-label x85">开发者可见：</label>
                        <input type="radio" name="is_dev" id="j_custom_dev1" data-toggle="icheck" value="1" data-rule="checked" data-label="是&nbsp;&nbsp;" <?php echo $infoArr['is_dev']==1?'checked':'';?>>
                        <input type="radio" name="is_dev" id="j_custom_sex2" data-toggle="icheck" value="0" data-label="否" <?php echo $infoArr['is_dev']==0?'checked':'';?>>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</div>
</block>
